/**
 * 
 */
package org.cuatrovientos.loops;

import java.util.Scanner;

/**
 * Simple class to show the use of loops
 * @author segoitz_guibert
 *
 */
public class Loops {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int counter = 10;
		String message = "FAP";
		String line = "";
		//We need this to read from console
		Scanner reader = new Scanner(System.in);
		int number = 0;
		
		while (counter >0){
			System.out.println(message);
			counter--; /* counter = counter-1 */
		}
		// Require a number
		do {
			System.out.println("The number of the beast is : ");
			line = reader.nextLine();
			number = Integer.parseInt(line);
		}while(number !=666);
		
		System.out.println("Hell yeah!");
		
		for(int i = 0; i <666; i++){
			System.out.println(i+ " Satan ");
		}
		
		//break: exists loop
		
		//continue next loop
		
		myloop:
		for(int i = 0; i <10; i++){
			for (int j= 0; j <10; j++){
				System.out.print("#");
				break myloop;
						
			}
			System.out.println();
		}
	}

}
